home *** CD-ROM | disk | FTP | other *** search
- global sectionPList, currCDROMText, gTextHold, gDrLabClickMsg, auxLocPList, pictureSp1, videoBorderSp1, videoSp1, gSep, gModule, gTocCastNum, gDbICastNum, indexType, toc_dbiCastLib
-
- on setupCDROM
- cursor(4)
- set indexType to #toc
- updateStage()
- put EMPTY before line 1 of field "table of contents" of castLib toc_dbiCastLib
- put EMPTY before line 1 of field "scroll text field" of castLib toc_dbiCastLib
- go("TOC")
- set auxLocPList to [:]
- set auxLocPList to ["pic1": point(250, 156), "pic2": point(250, 269), "cap1": point(188, 230), "cap1": point(188, 343), "vidBorder1": point(250, 148), "video1": point(250, 140), "vidBorder2": point(250, 262), "video2": point(250, 254)]
- set pictureSp1 to 41
- set videoBorderSp1 to 42
- set videoSp1 to 43
- set gTocCastNum to the number of member "table of contents" of castLib toc_dbiCastLib
- set gDbICastNum to the number of member "database index text" of castLib toc_dbiCastLib
- setFingerCursor(#on, [40, 46, 47, 48])
- cursor(-1)
- end
-
- on setTOCReturn
- if (getaProp(sectionPList, #usedEquip) = 1) and (getaProp(sectionPList, #checkedTask) = 1) then
- PlayDrLabcoat("C4.mov")
- set gDrLabClickMsg to "C4.mov"
- else
- PlayDrLabcoat(gDrLabClickMsg)
- end if
- end
-
- on copyText
- set gTextHold to char the selStart + 1 to the selEnd of field currCDROMText
- end
-
- on SelectAll
- set selStart to 1
- set selEnd to the number of chars in field currCDROMText
- hilite field currCDROMText
- end
-